﻿<%@ Control Language="C#" ClassName="SuaFields" %>

<asp:FormView ID="FormView1" runat="server">
	<ItemTemplate>
		<table border="0" cellpadding="3" cellspacing="1">
			<tr>
        <td class="literal"><asp:Label ID="lbldataTenSua" runat="server" Text="Ten Sua:" AssociatedControlID="dataTenSua" /></td>
        <td>
					<asp:TextBox runat="server" ID="dataTenSua" Text='<%# Bind("TenSua") %>' MaxLength="100"></asp:TextBox>
				</td>
			</tr>
			<tr>
        <td class="literal"><asp:Label ID="lbldataGiaNhap" runat="server" Text="Gia Nhap:" AssociatedControlID="dataGiaNhap" /></td>
        <td>
					<asp:TextBox runat="server" ID="dataGiaNhap" Text='<%# Bind("GiaNhap") %>'></asp:TextBox><asp:RangeValidator ID="RangeVal_dataGiaNhap" runat="server" Display="Dynamic" ControlToValidate="dataGiaNhap" ErrorMessage="Invalid value" MaximumValue="999999999" MinimumValue="-999999999" Type="Double"></asp:RangeValidator>
				</td>
			</tr>
			<tr>
        <td class="literal"><asp:Label ID="lbldataGiaTrenBaoBi" runat="server" Text="Gia Tren Bao Bi:" AssociatedControlID="dataGiaTrenBaoBi" /></td>
        <td>
					<asp:TextBox runat="server" ID="dataGiaTrenBaoBi" Text='<%# Bind("GiaTrenBaoBi") %>'></asp:TextBox><asp:RangeValidator ID="RangeVal_dataGiaTrenBaoBi" runat="server" Display="Dynamic" ControlToValidate="dataGiaTrenBaoBi" ErrorMessage="Invalid value" MaximumValue="999999999" MinimumValue="-999999999" Type="Double"></asp:RangeValidator>
				</td>
			</tr>
			<tr>
        <td class="literal"><asp:Label ID="lbldataGiaBan" runat="server" Text="Gia Ban:" AssociatedControlID="dataGiaBan" /></td>
        <td>
					<asp:TextBox runat="server" ID="dataGiaBan" Text='<%# Bind("GiaBan") %>'></asp:TextBox><asp:RangeValidator ID="RangeVal_dataGiaBan" runat="server" Display="Dynamic" ControlToValidate="dataGiaBan" ErrorMessage="Invalid value" MaximumValue="999999999" MinimumValue="-999999999" Type="Double"></asp:RangeValidator>
				</td>
			</tr>
			<tr>
        <td class="literal"><asp:Label ID="lbldataHinhAnh" runat="server" Text="Hinh Anh:" AssociatedControlID="dataHinhAnh" /></td>
        <td>
					<asp:TextBox runat="server" ID="dataHinhAnh" Text='<%# Bind("HinhAnh") %>' MaxLength="50"></asp:TextBox>
				</td>
			</tr>
			<tr>
        <td class="literal"><asp:Label ID="lbldataThongTin" runat="server" Text="Thong Tin:" AssociatedControlID="dataThongTin" /></td>
        <td>
					<asp:TextBox runat="server" ID="dataThongTin" Text='<%# Bind("ThongTin") %>' MaxLength="200"></asp:TextBox>
				</td>
			</tr>
			<tr>
        <td class="literal"><asp:Label ID="lbldataMaLoai" runat="server" Text="Ma Loai:" AssociatedControlID="dataMaLoai" /></td>
        <td>
					<data:EntityDropDownList runat="server" ID="dataMaLoai" DataSourceID="MaLoaiLoaiSuaDataSource" DataTextField="TenLoai" DataValueField="MaLoai" SelectedValue='<%# Bind("MaLoai") %>' AppendNullItem="true" Required="false" NullItemText="< Please Choose ...>" />
					<data:LoaiSuaDataSource ID="MaLoaiLoaiSuaDataSource" runat="server" SelectMethod="GetAll"  />
				</td>
			</tr>
			<tr>
        <td class="literal"><asp:Label ID="lbldataMaNsx" runat="server" Text="Ma Nsx:" AssociatedControlID="dataMaNsx" /></td>
        <td>
					<data:EntityDropDownList runat="server" ID="dataMaNsx" DataSourceID="MaNsxNhaSanXuatDataSource" DataTextField="TenNsx" DataValueField="MaNsx" SelectedValue='<%# Bind("MaNsx") %>' AppendNullItem="true" Required="false" NullItemText="< Please Choose ...>" />
					<data:NhaSanXuatDataSource ID="MaNsxNhaSanXuatDataSource" runat="server" SelectMethod="GetAll"  />
				</td>
			</tr>
			<tr>
        <td class="literal"><asp:Label ID="lbldataSoLuong" runat="server" Text="So Luong:" AssociatedControlID="dataSoLuong" /></td>
        <td>
					<asp:TextBox runat="server" ID="dataSoLuong" Text='<%# Bind("SoLuong") %>'></asp:TextBox><asp:RangeValidator ID="RangeVal_dataSoLuong" runat="server" Display="Dynamic" ControlToValidate="dataSoLuong" ErrorMessage="Invalid value" MaximumValue="2147483647" MinimumValue="-2147483648" Type="Integer"></asp:RangeValidator>
				</td>
			</tr>
			
		</table>

	</ItemTemplate>
</asp:FormView>


